package com.erp.myAdapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;

import androidx.viewpager.widget.PagerAdapter;

import java.util.List;

/**
 * Created by Administrator on 2017/3/28/028.
 * 作者：刘洋
 */

public class PhotoPagerAdapter extends PagerAdapter {
    private List<String> mlistpath;
    private Context mcontext;
    private LayoutInflater minflater;
    public PhotoPagerAdapter(List<String> listpath,Context context){
        mlistpath=listpath;
        mcontext=context;
        minflater=LayoutInflater.from(context);
    }
    @Override
    public int getCount() {
        return mlistpath.size();
    }

    @Override
    public boolean isViewFromObject(View view, Object object) {
        return false;
    }
}
